display text in pygame

75

how to write a font in pygame -

font = pygame.font.SysFont(None, 24)
img = font.render('hello', True, BLUE)
screen.blit(img, (20, 20))

Comments

Submit
0 Comments